import request from '@/utils/request'

// 查询局域网设备 列表
export function listIpscan(query) {
  return request({
    url: '/mytool/ipscan/list',
    method: 'get',
    params: query
  })
}

// 查询局域网设备 详细
export function getIpscan(id) {
  return request({
    url: '/mytool/ipscan/' + id,
    method: 'get'
  })
}

// 新增局域网设备 
export function addIpscan(data) {
  return request({
    url: '/mytool/ipscan',
    method: 'post',
    data: data
  })
}

// 修改局域网设备 
export function updateIpscan(data) {
  return request({
    url: '/mytool/ipscan',
    method: 'put',
    data: data
  })
}

// 删除局域网设备 
export function delIpscan(id) {
  return request({
    url: '/mytool/ipscan/' + id,
    method: 'delete'
  })
}
